package io.a.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * 接收者
 * @author pan_junbiao
 **/
@Primary
@Component
@RabbitListener(queues = "topic_queue_name_a")
public class TopicReceiverA {


    @RabbitHandler
    public void process(String msg) {
        System.out.println("Topic ReceiverA：" + msg);
    }
}
